package com.atguigu.eduservice.service.client;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author He Wentao
 * @since 2022/9/27 18:12
 */
@FeignClient(name = "service-ucenter", fallback =UcenterDegradeFeignClient.class)  // 要调用的服务名
public interface UcenterClient {

    @GetMapping("/educenter/member/getInfoByToken/{token}")
    public R getInfoByToken(@PathVariable("token") String toKen);
}
